package cn.com.sise.service;

import cn.com.sise.pojo.Exercise;
import cn.com.sise.pojo.Question;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ExerciseService {

    //增加题目
    int insertQuestion(Question question);

    //通过Id删除题目
    int deleteQuestion(Question question);

    //过Id修改题目
    int updateQuestion(Question question);

    //通过ID查询该ID试卷所有题目
    List<Exercise> getAllQuestionById(int exerciseId);

    //查询所有的试卷
    List<Exercise> getAllExercises();

    //插入试卷
    int insertExercise(Exercise exercise);

    //根据试卷ID删除试卷
    void deleteExercise(int exercise_id);

    //根据试题ID删除试题
    Question getQuestionById(int question_id);
}
